#include "CApp.h"
 
void CApp::OnLoop() {
	/*
	Anim_Yoshi.OnAnimate();

	if(OldTime + FrameRate < SDL_GetTicks()) {
        OldTime = SDL_GetTicks();
		Yoshi_x_pos += 1;

		if( Yoshi_x_pos > 650 ) Yoshi_x_pos=-50;


		for(int i=0; i<NO_OF_YOSHIS; i++)
		{
			Yoshi_objects[i]->Yoshi_x_pos += 1;

			if( Yoshi_objects[i]->Yoshi_x_pos > 650 ) Yoshi_objects[i]->Yoshi_x_pos = (-200) +int(180*rand()/(RAND_MAX + 1.0));
		}
	}

	*/
	for(int i=0; i<NO_OF_YOSHIS; /*number of objects*/ i++)
	{
		Yoshi_objects[i]->OnLoop();
	}



}